﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace COFE.Web.Services
{
    [ServiceContract]
    public interface IEntryTypeServices
    {
        [OperationContract]
        [WebGet(UriTemplate = "{typeID}?rel={rel}&json={json}")]
        Stream GetEntryType(string typeID, string rel, string json);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="typeID"></param>
        /// <param name="size">(SmallIcon*, Icon, LargeIcon, ExtraLargeIcon, JumboIcon), please refer to COFE.Core.IconProperties</param>
        [OperationContract]
        [WebGet(UriTemplate = "{typeID}/icon?size={size}")]
        Stream GetIcon(string typeID, string size);
    }
}